net: ena: fix retrieval of nonadaptive interrupt moderation intervals
authorArthur Kiyanovski <akiyano@amazon.com>
Mon, 16 Sep 2019 11:31:35 +0000 (14:31 +0300)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 7 Dec 2019 12:24:06 +0000 (12:24 +0000)
commit67305fc58af2cfb484cc1d8d9612f7fc7297696f
treede7f9a72e6a9cf3a27ea55c7567c7b47b681a331
parentc4280e93d79a8136acffa716b0ffebd6f1f1ced8
net: ena: fix retrieval of nonadaptive interrupt moderation intervals

Nonadaptive interrupt moderation intervals are assigned the value set
by the user in ethtool -C divided by ena_dev->intr_delay_resolution.

Therefore when the user tries to get the nonadaptive interrupt moderation
intervals with ethtool -c the code needs to multiply the saved value
by ena_dev->intr_delay_resolution.

The current code erroneously divides instead of multiplying in ethtool -c.
This patch fixes this.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic features/all/ena
Gbp-Pq: Name 0011-net-ena-fix-retrieval-of-nonadaptive-interrupt-moder.patch
drivers/net/ethernet/amazon/ena/ena_ethtool.c